package ph.loong.deliveryman.fragment.main

import android.support.v7.widget.LinearLayoutManager
import deliveryman.loong.ph.deliveryman.R
import kotlinx.android.synthetic.main.fragment_unqiangdan.*
import ph.loong.deliveryman.adapter.SongdaAdapter
import ph.loong.deliveryman.base.BaseFragment
import java.util.*

/**
 * Author jc.lu.
 * Dates 2018/2/22.
 * Email Tbsupland@163.com.
 * desc
 */
class UnSongdaFragment : BaseFragment() {



    override fun getLayoutId(): Int = R.layout.fragment_unsongda

    override fun initView() {
        recycler.layoutManager = LinearLayoutManager(context)
        val adapter = SongdaAdapter()
        recycler.adapter = adapter
        adapter.notifyDataSetChanged()


        val list: ArrayList<String> = ArrayList()
        list.add("5")
        list.add("10")
        list.add("15")
        list.add("20")

        adapter.setNewData(list)
    }

    override fun lazyLoad() {
    }
}